package com.binance.graceful.shutdown.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created by robin.wu on 2018/10/29.
 */
@ConfigurationProperties(prefix = "container.graceful.shutdown")
public class ShutdownProperties {

    /** 拒绝服务后的等待时间 (ms)**/
    private Long waitTime;

    /** 服务从eureka摘除后 ，服务继续可被访问的时间 (ms)**/
    private Long accessTime;


    public Long getWaitTime() {
        return waitTime;
    }

    public void setWaitTime(Long waitTime) {
        this.waitTime = waitTime;
    }

    public Long getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(Long accessTime) {
        this.accessTime = accessTime;
    }
}
